package com.umakr.ax.common.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.umakr.ax.common.model.UserScore;
import com.umakr.ax.core.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Umakr-Code-Generator
 * @since 2017-12-30
 */
public interface UserScoreMapper extends BaseMapper<UserScore> {

    Page<Map<String,Object>> listRsScoreByUserId(@Param("userId")Long userId);

    Integer getRsTotalScoreByUserId(@Param("userId")Long userId);

    Page<Map<String,Object>> listScoreByRsId(@Param("rsId")Long rsId);

    Page<Map<String,Object>> listScoreByRsIdAndUserId(@Param("rsId")Long rsId,@Param("userId")Long userId);

    Integer countByUserIdAndRsIdAndDate(@Param("userId")Long userId,@Param("stime")String date);
}